<!DOCTYPE html>
<html>
<#include "../head.html">
    <body>
    <table class="mc">
        <tr>
            <td class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </td>
            <td class="mc-m">
                <div class="navToggle"></div>
            </td>
            <td class="mc-r">
                <!--顶部导航---{-->
                <#include "../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="到期/还款金额合计">
                        <#include "banner.html">
                            <!--面包屑导航---}-->
                             <!--工具栏--}--><!--  V1.6.7.1 zhangyz 2013-11-20 start -->
                              <div id="toolbar" class="clearfix">
                              	<!-- v1.6.7.1 添加分页 zza 2013-11-25 start -->
                              	<div class="toolbor-module export">
				                    <input type="button" onclick="exportxls()" value="导出报表" class="input-button export-btn"/>
				                </div>
				                <!-- v1.6.7.1 添加分页 zza 2013-11-25 end -->
	                            <div class="toolbor-module search">    
	                                <input type="button" value="搜索"  class="input-button" onClick="sousuo();">
	                            </div>
                                <div class="toolbor-module search">
                                    <div style="height:22px;line-height:22px;float:left;">时间：</div>
					                    <input class="_search-value" name="dotime1" id="dotime1" value="${dotime1!}" size="15" onclick="change_picktime()"/>
					                    <div style="height:22px;line-height:22px;float:left;margin:0 8px;"> 到 </div>
					                    <input class="_search-value" name="dotime2" id="dotime2"  value="${dotime2!}"  size="15" onclick="change_picktime()"/>
	                                </div>
                            </div>
                             <!--工具栏--{--><!--  V1.6.7.1 zhangyz 2013-11-20 end -->
                            <div class="clearfix" id="toolbar">
                                <dl class="tool_dl clearfix">
                                	<!-- v1.6.7.1 RDPROJECT-419 zza 2013-11-26 start -->
                                    <dd>到期应还本息合计：${dayMatureAccount!?string("##.##")}</dd>
                                    <dd>到期应还本金合计：${dayCapitalAccount!?string("##.##")}</dd>
                                    <dd>到期应还利息合计：${dayMatureInterest!?string("##.##")}</dd>
                                    <dd>投标发放奖励合计：${dayTenderFunds!?string("##.##")}</dd>
                                    <dd>实际已还本金合计：${dayReapyCapital!?string("##.##")}</dd>
                                    <dd>实际已还利息合计：${dayRepayInterest!?string("##.##")}</dd>
                                    <dd>还款发放奖励合计：${dayRepaymentFunds!?string("##.##")}</dd>
                                    <!-- v1.6.7.1 RDPROJECT-419 zza 2013-11-26 end -->
                                    <dd>需还款的借款标：（如下表）</dd>
                                </dl>    
                                <span style="color: red;padding-left:30px;">* 默认只显示当天的数据！</span>
                            </div>
                            <div id="main" class="clearfix">
                                <table class="data-list">
	                                <tr class="header">
	                                    <td>ID</td>
	                                    <td>借款人</td>
	                                    <td>真实姓名</td>
	                                    <td>借款标题</td>
	                                    <td>期数</td>
	                                    <td>到期时间</td>
	                                    <td>还款金额</td>
	                                    <td>还款本金</td>
	                                    <td>还款利息</td>
	                                    <td>还款时间</td>
	                                    <td>状态</td>
	                                </tr>
	                                <#import "../../common/function.html" as func>
	                                    <#list dayMatureList as item>
	                                        <tr>
	                                            <td>${item.id?c}</td>
	                                            <td><a onclick='alertPop("用户详细信息查看","url:post?${request.getContextPath()}/admin/attestation/viewUserInfo.html?username=${item.username!}",500,230,"true","","true","text");'
	                                                  href="javascript:void(0)">${item.username!}</a></td>
	                                            <td>${item.realname!""}</td>
	                                            <td title="${item.borrow_name!}" class="tal">
	                                                <a href="${webroot}/invest/detail.html?borrowid=${(item.borrow_id!0)?c}" target="_blank">${item.borrow_name!}</a></td>
	                                            <td>${item.order+1}/${item.time_limit}</td>
	                                            <td>${dateformat(item.repayment_time)}</td>
	                                            <td>${((item.repayment_account)?number)?string("##.##")}元</td>
	                                            <td>${((item.capital)?number)?string("##.##")}元</td>
	                                            <td>${((item.interest)?number)?string("##.##")}元</td>
	                                            <td><#if item.repayment_yestime??>${dateformat(item.repayment_yestime)}<#else>-</#if></td>
	                                            <td><font color="#006600"><#if item.repayment_yestime??>已还<#else>还款中</#if></font></td>
	                                        </tr>
	                                    </#list>
                              	</table>
                              	<!-- v1.6.7.1 添加分页 zza 2013-11-25 start -->
                              	<!--翻页系统--{-->
			                    <div class="container">
			                       <#import "../../common/page.html" as pager>
			                       <@pager.pagination page=page url="/admin/report/dayAccount.html" map=param style="style1" />
			                    </div>
			                    <!--翻页系统--}-->
			                    <!-- v1.6.7.1 添加分页 zza 2013-11-25 end -->
                                <!--底部工具栏--}-->
                                <!--  V1.6.7.1 zhangyz 2013-11-20 start -->
                                <script>
                                    var url = 'dayAccount.html?search=true';
                                    // v1.6.7.1 添加分页 zza 2013-11-25
                                    var xlsurl = 'dayAccount.html?actionType=true';
                                    function sousuo(){
                                        var sou = "";
                                        var dotime1 = $("#dotime1").val();
                                        var dotime2 = $("#dotime2").val();
                                        var type = $("#type").val();
                                        if (dotime1!=null){
                                            sou += "&dotime1="+dotime1;
                                        }
                                        if (dotime2!=null){
                                            sou += "&dotime2="+dotime2;
                                        }
                                        if (sou!=""){
                                            location.href=url+sou;
                                        }
                                    }
                                    function exportxls(){
                                        var sou = "";
                                        var dotime1 = $("#dotime1").val();
                                        var dotime2 = $("#dotime2").val();
                                        if (dotime1!=null){
                                            sou += "&dotime1="+dotime1;
                                        }
                                        if (dotime2!=null){
                                            sou += "&dotime2="+dotime2;
                                        }
                                        if (sou!=""){
                                            location.href=xlsurl+sou;
                                        } else {
                                            location.href=xlsurl;
                                        }
                                    }
                                    // v1.6.7.1 添加分页 zza 2013-11-25 end
                           		</script>
                                    <!--  V1.6.7.1 zhangyz 2013-11-20 end -->
                            </div>
            </td>
        </tr>
        <tr>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../foot.html"></td>
            <!--尾部--}-->
        </tr>
    </table>

    </body>
</html>
<#include "../jsPage.html">
